package ru.jetsoft.reg112.desktop.control;

import javafx.scene.control.CheckBox;
import ru.jetsoft.reg112.desktop.data.Param;

public class CheckBoxControl extends InputParamControl {

    private final CheckBox checkBox;

    public CheckBoxControl(Param param) {
        super(param);
        checkBox = new CheckBox();
        getHBox().getChildren().add(checkBox);
    }

    @Override
    public String getValue() {
        return Boolean.toString(checkBox.isSelected());
    }
}
